var str = [
    '"test"',
    "'test'",
    '"tes\"t"',
]
var out = str.map(item => {
    return item.replace(/['"]/g, '')
})
console.log(out);